Skip to content

add --unstaged option to view only unstaged files/hunks#521

Open
githendrik wants to merge 1 commit intobacknotprop:mainfrom
githendrik:main
Open

add --unstaged option to view only unstaged files/hunks#521
githendrik wants to merge 1 commit intobacknotprop:mainfrom
githendrik:main

Conversation

@githendrik
Copy link
Copy Markdown

Related to this issue: #287
My personal flow is to stage hunks that I approved in previous steps. This flag allows me to view only the most recent changes.

} else {
// --- Local Review Mode ---
gitContext = await getVcsContext();
initialDiffType = gitContext.vcsType === "p4" ? "p4-default" : "uncommitted";
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have P4 users. I need to make sure this doesn't break for them.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, okay. I wasn't aware of this case. Do you need me to change something? Just let me know.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

caveat, i havent fully reviewed...

deleted: gitContext.vcsType === "p4" ? "p4-default"

You might still need a ternary path to make this assignment is my concern.

I can validate later today and trace myself, and if I see a fix, I'll fix it. Otherwise, I think you just need to have a bit more verbose ternary that includes your new option but also the P4 default if that's set as vcsType.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants